#!/usr/bin/env bash
echo "开始启动develop"
echo "复制jar包到/home/apps/jars/server-dev"
rm -rf /home/apps/jars/server-dev/jiesen-server-dev-1.0-SNAPSHOT.jar
cp /home/jenkins/root/workspace/server-dev/target/jiesen-server-dev-1.0-SNAPSHOT.jar /home/apps/jars/server-dev/jiesen-server-dev-1.0-SNAPSHOT.jar
export BUILD_ID=dontKillMe
nohup java -Xms246m -Xmx500m -Dhudson.util.ProcessTree.disable=true -jar  /home/apps/jars/server-dev/jiesen-server-dev-1.0-SNAPSHOT.jar >/home/apps/jars/server-dev/jiesen-server-dev.log 2>&1 &
echo "启动完成develop"
sleep 10s
